with(vm.declareClass(new JavaClass('net/srcz/jsjvm/demo/Essai'))) {
fields['constructorParam1'] = null;
with(declareMethod(new JavaMethod('<init>(Ljava/lang/String;)V'))) {
invoke = function() {
var localvar_1 = vm.po();
var localvar_0 = vm.po();
var nextLabel = 0;for(;;){switch(nextLabel){default:
case 1728081269 :
// line 10 = L1728081269
vm.pu(localvar_0); //ALOAD
var objectRef = vm.stack[vm.stack.length-1];vm.getClasse('java/lang/Object').methods['<init>()V'].invoke(); //INVOKESPECIAL
case 821556544 :
// line 11 = L821556544
vm.pu(localvar_0); //ALOAD
vm.pu(localvar_1); //ALOAD
var val = vm.po();/* net/srcz/jsjvm/demo/Essai */ vm.po().fields['constructorParam1']=val; //PUTFIELD
case 1728468445 :
// line 12 = L1728468445
return; //RETURN
case 1357862146 :
}
}
}
};
with(declareMethod(new JavaMethod('foncTest(Ljava/lang/String;)V'))) {
invoke = function() {
var localvar_1 = vm.po();
var localvar_0 = vm.po();
var nextLabel = 0;for(;;){switch(nextLabel){default:
case 280371153 :
// line 15 = L280371153
vm.pu(vm.getClasse('java/lang/System').fields['out']); //GETSTATIC
vm.pu(localvar_0); //ALOAD
vm.pu(/* net/srcz/jsjvm/demo/Essai */ vm.po().fields['constructorParam1']); //GETFIELD
var objectRef = vm.stack[vm.stack.length-2];/*java/io/PrintStream*/objectRef.javaClass.methods['println(Ljava/lang/String;)V'].invoke(); //INVOKEVIRTUAL
case 618846953 :
// line 16 = L618846953
vm.pu(vm.getClasse('java/lang/System').fields['out']); //GETSTATIC
vm.pu(localvar_1); //ALOAD
var objectRef = vm.stack[vm.stack.length-2];/*java/io/PrintStream*/objectRef.javaClass.methods['println(Ljava/lang/String;)V'].invoke(); //INVOKEVIRTUAL
case 697436650 :
// line 17 = L697436650
vm.pu(vm.getClasse('java/lang/System').fields['out']); //GETSTATIC
vm.pu('staticString'); //LDC
var objectRef = vm.stack[vm.stack.length-2];/*java/io/PrintStream*/objectRef.javaClass.methods['println(Ljava/lang/String;)V'].invoke(); //INVOKEVIRTUAL
case 667823572 :
// line 18 = L667823572
return; //RETURN
case 1361235382 :
}
}
}
};
with(declareMethod(new JavaMethod('main([Ljava/lang/String;)V'))) {
invoke = function() {
var localvar_0 = vm.po();
var nextLabel = 0;for(;;){switch(nextLabel){default:
case 1139773783 :
// line 21 = L1139773783
var newObj = new JavaObject(vm.getClasse('net/srcz/jsjvm/demo/Essai')); vm.pu(newObj); //NEW
var val = vm.po();vm.pu(val);vm.pu(val); //DUP
vm.pu('constructorParam01'); //LDC
var objectRef = vm.stack[vm.stack.length-2];vm.getClasse('net/srcz/jsjvm/demo/Essai').methods['<init>(Ljava/lang/String;)V'].invoke(); //INVOKESPECIAL
vm.pu('methodParam01'); //LDC
var objectRef = vm.stack[vm.stack.length-2];/*net/srcz/jsjvm/demo/Essai*/objectRef.javaClass.methods['foncTest(Ljava/lang/String;)V'].invoke(); //INVOKEVIRTUAL
case 623839641 :
// line 28 = L623839641
return; //RETURN
case 857681633 :
}
}
}
};
};
